package com.realone.packman.codec.decoder.vo;

import java.util.ArrayList;
import java.util.List;

/**
 * 获取BMS电压 应答响应
 *
 * @author hugx
 * @create 2018-09-13 14:16
 */
public class BmsDecoderDataVo11 extends BmsDecoderDataVo {

    private List<Double> voltageList ;// 电池电压

    public BmsDecoderDataVo11(Integer classType) {
        super(classType);
    }

    /**
     * 电池（包）的电压 集合
     * @return
     */
    public List<Double> getVoltageList() {
        return voltageList;
    }

    /**
     * 添加 电池（包）的电压到集合中
     * @param voltage
     */
    public void addVoltage(Double voltage){
        if(voltage == null){
            return;
        }
        if(voltageList == null){
            voltageList=new ArrayList<Double>(1);
        }

        voltageList.add(voltage);
    }
}
